<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <input type="text" placeholder="用户名">
    <br>
    <input type="text" placeholder="手机号">
    <br>
    <input type="text" placeholder="邮箱">
    <br>
    <input type="text" placeholder="1111">
    <br>
    <button>注册</button>

    <script>

        // localStorage.setItem(user , pwd) 

        const user = {
            username : 'yy' ,
            usertel : '18888888' ,
            useremail : '28@qq.com' ,
            userpwd : '123'
        } ;


        // 在存储数据的时候，必定有一个字段具有唯一性
        

        // 存不住数据  
        // localStorage.setItem('yy' , user) ;   // object Object


        // console.log(user.toString());   // object Object

        // document.write(user) ;   // object Object

    </script>
    
</body>
</html>